home *** CD-ROM | disk | FTP | other *** search
- Tutorial: Crackme 4a (nOp3x)
- By: Sanhedrin
-
-
- Tools: W32DASM
-
- Disassemble the crackme and search for the words well done. This get you here:
-
- * Reference To: KERNEL32.GetDriveTypeA, Ord:0000h
- |
- :00401087 E884040000 Call 00401510
- :0040108C 8BC8 mov ecx, eax
- :0040108E BBAE3E0F00 mov ebx, 000F3EAE
- :00401093 90 nop
- :00401094 40 inc eax
- :00401095 42 inc edx
- :00401096 47 inc edi
- :00401097 90 nop
- :00401098 48 dec eax
- :00401099 4A dec edx
- :0040109A 4F dec edi
- :0040109B 90 nop
- :0040109C 3BD9 cmp ebx, ecx
- :0040109E 7525 jne 004010C5<----jump to bad luck if not in CD drive
- :004010A0 6800100000 push 00001000
-
- * Possible StringData Ref from Data Obj ->"Well Done"
- |
- :004010A5 6898204000 push 00402098
-
- * Possible StringData Ref from Data Obj ->"This program is being run from "
- ->"a CD"
- |
- :004010AA 6874204000 push 00402074
- :004010AF 6A00 push 00000000
-
- * Reference To: USER32.MessageBoxA, Ord:0000h
- |
- :004010B1 E86C040000 Call 00401522
-
- * Possible StringData Ref from Data Obj ->"Correct CD In Drive"
- |
- :004010B6 68A2204000 push 004020A2
-
- * Possible Reference to Dialog: DialogID_0001, CONTROL_ID:0065, ""
- |
- :004010BB 6A65 push 00000065
- :004010BD 56 push esi
-
- * Reference To: USER32.SetDlgItemTextA, Ord:0000h
- |
- :004010BE E859040000 Call 0040151C
- :004010C3 EB23 jmp 004010E8
-
- * Referenced by a (U)nconditional or (C)onditional Jump at Address:
- |:0040109E(C)
- |
- :004010C5 6800100000 push 00001000
-
- * Possible StringData Ref from Data Obj ->"Bad Luck"
- |
- :004010CA 68F3204000 push 004020F3
-
- * Possible StringData Ref from Data Obj ->"This program isn't being run from "
- ->"a CD, Please insert the CD"
- |
- :004010CF 68B6204000 push 004020B6
- :004010D4 6A00 push 00000000
-
- * Reference To: USER32.MessageBoxA, Ord:0000h
- |
- :004010D6 E847040000 Call 00401522
-
- * Possible StringData Ref from Data Obj ->"Invalid CD In Drive"
- |
- :004010DB 68FC204000 push 004020FC
-
-
-
-
- --Solution--
-
- In order to crack this one, change
-
- 0040109E 7525 jne 004010C5 to
- 0040109E 7425 je 004010C5
-
- or
- 0040109E 90 nop
- 0040109F 90 nop
-
- and the file will be cracked.
-
-
- Thanks to all of those coders that make these crackmes, and of course to Eternal Bliss.
-
-
- Sanhedrin
- stachi@geocities.com